﻿using DAL;

namespace BLL
{
    public class AdminBll
    {
        public AdminBll(AdminDal dal)
        {
            Dal = dal;
        }

        public AdminDal Dal { get; }
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="name">用户名</param>
        /// <param name="pwd">密码</param>
        /// <returns></returns>
        public dynamic Login(string name, string pwd)
        {
            try
            {
                var res = Dal.Login(name, pwd);
                return res;


            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}